home *** CD-ROM | disk | FTP | other *** search
- on mouseUp
- global gMonoFont, gPropFont, gCanPrint
- if gCanPrint = 0 then
- alert("The PrintOMatic Xtra is not installed. Printing is disabled.")
- exit
- end if
- set doc to new(xtra("PrintOMatic"))
- if not objectp(doc) then
- alert("There is no currently selected printer. Printing features are disabled.")
- else
- cursor(4)
- setDocumentName(doc, "PrintOMatic Xtra Info Sheet")
- newPage(doc)
- newFrame(doc, rect(0, 0, getPageWidth(doc), 30), 0)
- set colW to (getPageWidth(doc) / 2) - 18
- set picHt to the height of cast "illustration" * (colW - 24) / the width of cast "illustration"
- drawPicture(doc, member "illustration", rect(0, 30, colW - 24, 30 + picHt))
- newFrame(doc, rect(0, 30 + picHt + 20, colW, getPageHeight(doc)), 1)
- append(doc, member "infoblurb1", 0)
- newFrame(doc, rect(getPageWidth(doc) / 2, 30 + picHt + 20, getPageWidth(doc), getPageHeight(doc)), 0)
- append(doc, member "infoblurb2", 0)
- cursor(-1)
- if word 1 of the text of cast the castNum of sprite the clickOn = "Preview" then
- printPreview(doc)
- else
- if doJobSetup(doc) = 1 then
- updateStage()
- print(doc)
- end if
- end if
- set doc to 0
- end if
- end
-